package cn.dansj.common.utils.time;

import java.text.FieldPosition;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public interface DatePrinter {
    String format(Calendar calendar);

    <B extends Appendable> B format(Calendar calendar, B buf);

    String format(Date date);

    <B extends Appendable> B format(Date date, B buf);

    String format(long millis);

    <B extends Appendable> B format(long millis, B buf);

    StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos);

    Locale getLocale();

    String getPattern();

    TimeZone getTimeZone();
}
